package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the instocks database table.
 * 
 */
@Entity
@Table(name="instocks")
@NamedQuery(name="Instock.findAll", query="SELECT i FROM Instock i")
public class Instock implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int inum;

	private String iname;

	private int innum;

	private int ipnum;

	private int iquantity;

	//bi-directional many-to-one association to Depotgood
	@ManyToOne
	@JoinColumn(name="dnum")
	private Depotgood depotgood;

	public Instock() {
	}

	public int getInum() {
		return this.inum;
	}

	public void setInum(int inum) {
		this.inum = inum;
	}

	public String getIname() {
		return this.iname;
	}

	public void setIname(String iname) {
		this.iname = iname;
	}

	public int getInnum() {
		return this.innum;
	}

	public void setInnum(int innum) {
		this.innum = innum;
	}

	public int getIpnum() {
		return this.ipnum;
	}

	public void setIpnum(int ipnum) {
		this.ipnum = ipnum;
	}

	public int getIquantity() {
		return this.iquantity;
	}

	public void setIquantity(int iquantity) {
		this.iquantity = iquantity;
	}

	public Depotgood getDepotgood() {
		return this.depotgood;
	}

	public void setDepotgood(Depotgood depotgood) {
		this.depotgood = depotgood;
	}

}